package site.xuxingcan.Util;

import site.xuxingcan.Model.CardModel;

import java.util.ArrayList;
import java.util.Collections;

/**
 * Created by xuxingcan on 16-7-26.
 */
public class GameUtil {
    private ArrayList<CardModel> cardModelArrayList;

    public GameUtil() {
        cardModelArrayList = new ArrayList<>();
        for (int type = 1; type <= 3; type++) {
            for (int number = 1; number <= 9; number++) {
                for (int i = 0; i < 4; i++) {
                    cardModelArrayList.add(new CardModel(type, number));
                }
            }
        }
        Collections.shuffle(cardModelArrayList);
    }

}
